#ifndef _NETWORKCONTROLLER_H
#define _NETWORKCONTROLLER_H

#define RING_BUFFER_LENGTH 200

#include <string>

#include "Controller.h"
#include "RingBuffer.h"

class NetworkController : public Controller
{
public:
	NetworkController(int dataLength, short entityReference);

	virtual void Update(float deltaT){}

	void AddData(long tick, char *data);

	short GetRef(){ return m_entityRef; }
	std::string *GetData(long pos);


private:
	RingBuffer<std::string, long, RING_BUFFER_LENGTH> *m_buffer;
	int m_dataLength;
	short m_entityRef;
};

#endif